FROM java:8-jre

ADD ./target/ordering-service.jar /app/

CMD ["java", "-Xmx600m", "-XX:+HeapDumpOnOutOfMemoryError", "-XX:HeapDumpPath=/tmp", "-jar", "/app/ordering-service.jar"]

RUN  echo "Asia/Shanghai" > /etc/timezone
RUN  dpkg-reconfigure -f noninteractive tzdata

EXPOSE 8010